<?php foreach($articles as $key=>$article):?>
<?php if($article->post->view_users->id() && in_array($user->user_id, FUNC::setArrayByField(array('user_id'), $article->post->view_users, false))): ?>
<?php $read = 'y' ?>
<?php else: ?>
<?php $read = 'n' ?>
<?php endif ?>
<li>
    <a href="<?php echo url('articles/view', array('col_id'=>$article->col_id, 'art_id'=>$article->art_id)) ?>">
        <?php if($article->photoes->id()): ?>
        <img src="<?php echo $article->photoes[0]->url ?>" width="120" height="90" />
        <?php else: ?>
         <img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/video.png" width="120" height="90" />
        <?php endif ?>
        <p><?php echo h($article->title) ?></p>
    </a>
</li>
<?php endforeach ?>
